package com.yh.service;


import com.github.pagehelper.Page;
import com.yh.entity.Books;
import java.util.Map;

public interface IBooksService {

    /**
     * 模糊查询
     * @param book
     * @return
     */
    Page getLikeAllByX(Map<String, Object> book);

    /**
     * 新增书籍
     * @param books
     */
    void addBooks(Books books);

    /**
     * 删除
     * @param books
     */
    void delBooks(Books books);

    /**
     * 根据id 获得书籍
     * @param books
     * @return
     */
    Books getBooksById(Books books);

    /**
     * 修改
     * @param books
     */
    void updateBooks(Books books);


}
